package cn.hhchat.wp.repository;

import cn.hhchat.wp.entity.GroupEntity;
import org.springframework.data.domain.Sort;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created this one by HMH on 2017/10/22.
 */
public interface GroupRepository extends JpaRepository<GroupEntity, Long> {

    GroupEntity findByName(String name);

    GroupEntity findById(Long id);

    List<GroupEntity> findAllByIsFinished(Boolean isFinished, Sort sort);

}
